package cheqex.update;

import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.KeyEvent;

import javax.swing.*;

public class AccountSettingsView extends JPanel {
	private JTabbedPane accountSettingsTabs;
	private JPanel tabPane1;
	private JPanel tabPane2;
	
	public AccountSettingsView(){
		initialize();
	}
	
	/*	initialize
	 * 	----------
	 * 	AUTHOR: Patrisha Louisse O Sales
	 * 	initialize intilializes the components of the
	 * 	AccountSettingsView		*/
	public void initialize(){
		this.accountSettingsTabs = new JTabbedPane();
		this.tabPane1 = new ChangeUsernameView();
		this.tabPane2 = new ChangePasswordView();
		
		accountSettingsTabs.addTab("Change Username",tabPane1);
			accountSettingsTabs.setMnemonicAt(0, KeyEvent.VK_1);
		
		accountSettingsTabs.addTab("Change Password",tabPane2);
			accountSettingsTabs.setMnemonicAt(1, KeyEvent.VK_2);
		
		accountSettingsTabs.setVisible(true);
		accountSettingsTabs.setAutoscrolls(true);
		
		
		this.add(accountSettingsTabs);
		this.setVisible(true);
		this.setAutoscrolls(true);
		this.setEnabled(true);
		this.setLayout(new FlowLayout(FlowLayout.LEFT));
	}
	/*		END OF initialize		*/
}
